package com.demo.feign.api.hello;

import com.demo.feign.api.hello.domain.Hello;
import org.springframework.web.bind.annotation.*;

@RequestMapping("/refactor")
public interface HelloService {
    @GetMapping("hello1")
    String hello();

    @GetMapping("hello2")
    String hello(@RequestParam("name") String name);
    @GetMapping("/hello3")
    Hello hello(@RequestParam("name") String name,
                @RequestParam("age") Integer age);
    @PostMapping("/hello4")
    String hello(@RequestBody Hello hello);




}
